home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 32
/
Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso
/
Aminet
/
comm
/
tcp
/
hserv.lha
/
hserv
/
cgi-bin
/
fileServ.rexx.real
< prev
next >
Wrap
Text File
|
1999-05-24
|
598b
|
28 lines
/* fileServ.rexx */
parse arg "file="file
file=decode(file)
eol='A'x
say "Content-Type: text/html"eol
if exists("/htdocs/archive/"file) then do
say '
<HTML>
<HEAD><TITLE>'file'</TITLE></HEAD>
<SCRIPT LANGUAGE="JavaScript"> function test()
{ document.location.pathname = "/archive/'file'";
return true } </SCRIPT>
<BODY onLoad="test()">Downloading 'file'...<br><LI><A HREF="/form.html"><back></A>
</BODY></HTML>'
end
else do
say '
<HTML>
<HEAD><TITLE>File Server</TITLE></HEAD>
File:' file 'does not exist on this server<br><LI><A HREF="/form.html"><back></A>
</BODY></HTML>'
end